/*
 * XML Type:  StocksBonds
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StocksBonds
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StocksBonds(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StocksBondsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StocksBonds
{
    
    public StocksBondsImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STKBNDAMT$0 = 
        new javax.xml.namespace.QName("", "STKBNDAMT");
    private static final javax.xml.namespace.QName SBGROS$2 = 
        new javax.xml.namespace.QName("", "SBGROS");
    private static final javax.xml.namespace.QName SBGROSLESS$4 = 
        new javax.xml.namespace.QName("", "SBGROSLESS");
    
    
    /**
     * Gets the "STKBNDAMT" element
     */
    public java.lang.String getSTKBNDAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STKBNDAMT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STKBNDAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetSTKBNDAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STKBNDAMT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "STKBNDAMT" element
     */
    public void setSTKBNDAMT(java.lang.String stkbndamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STKBNDAMT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STKBNDAMT$0);
            }
            target.setStringValue(stkbndamt);
        }
    }
    
    /**
     * Sets (as xml) the "STKBNDAMT" element
     */
    public void xsetSTKBNDAMT(net.ofx.types.x2003.x04.AmountType stkbndamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STKBNDAMT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(STKBNDAMT$0);
            }
            target.set(stkbndamt);
        }
    }
    
    /**
     * Gets the "SBGROS" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getSBGROS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SBGROS$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SBGROS" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetSBGROS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SBGROS$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "SBGROS" element
     */
    public boolean isSetSBGROS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SBGROS$2) != 0;
        }
    }
    
    /**
     * Sets the "SBGROS" element
     */
    public void setSBGROS(net.ofx.types.x2003.x04.BooleanType.Enum sbgros)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SBGROS$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SBGROS$2);
            }
            target.setEnumValue(sbgros);
        }
    }
    
    /**
     * Sets (as xml) the "SBGROS" element
     */
    public void xsetSBGROS(net.ofx.types.x2003.x04.BooleanType sbgros)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SBGROS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(SBGROS$2);
            }
            target.set(sbgros);
        }
    }
    
    /**
     * Unsets the "SBGROS" element
     */
    public void unsetSBGROS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SBGROS$2, 0);
        }
    }
    
    /**
     * Gets the "SBGROSLESS" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getSBGROSLESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SBGROSLESS$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SBGROSLESS" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetSBGROSLESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SBGROSLESS$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "SBGROSLESS" element
     */
    public boolean isSetSBGROSLESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SBGROSLESS$4) != 0;
        }
    }
    
    /**
     * Sets the "SBGROSLESS" element
     */
    public void setSBGROSLESS(net.ofx.types.x2003.x04.BooleanType.Enum sbgrosless)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SBGROSLESS$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SBGROSLESS$4);
            }
            target.setEnumValue(sbgrosless);
        }
    }
    
    /**
     * Sets (as xml) the "SBGROSLESS" element
     */
    public void xsetSBGROSLESS(net.ofx.types.x2003.x04.BooleanType sbgrosless)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SBGROSLESS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(SBGROSLESS$4);
            }
            target.set(sbgrosless);
        }
    }
    
    /**
     * Unsets the "SBGROSLESS" element
     */
    public void unsetSBGROSLESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SBGROSLESS$4, 0);
        }
    }
}
